#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QLabel>
#include <QMainWindow>
#include <QMqttClient>
#include <qobject.h>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow {
  Q_OBJECT

public:
  MainWindow(QWidget *parent = nullptr);
  ~MainWindow();

  void setLedColor(QLabel *, QString, int);
  void saveFile();

private slots:

  void on_pbtn_clear_1_clicked();

  void on_pbtn_save_1_clicked();

  void on_pbtn_publish_1_clicked();

  void on_txt_clear_msg_1_clicked();

  void on_pbtn_connect_1_clicked();

private:
  Ui::MainWindow *ui;

  QMqttClient *client_1, *client_2;

  QString topic_1, topic_2;
};
#endif // MAINWINDOW_H
